package com.entity;

public class MovedDisk extends Disk implements UsbDevice {

    private MovedDisk() {
    }

    private MovedDisk(String brand, int size) {
        super(brand, size);
    }

    @Override
    public void read() {
        System.out.println(this.brand + "牌移动硬盘正在读取数据中...");
    }

    @Override
    public void write(String content) {
        System.out.println(this.brand + "牌移动硬盘正在写入数据："+content);
    }

    @Override
    public String toString() {
        return "MovedDisk{" +
                "brand='" + brand + '\'' +
                ", size=" + size +
                '}';
    }
}
